import request from '@/api/index'

const serviceName = 'oss-demo'
const groupName = 'oss'

// 获取存储空间列表
export const getBuckets = () => {
    return request.request({
        url: `${serviceName}/${groupName}/getBuckets`,
        method: 'get'
    })
}

// 获取存储空间列表
export const getFileList = data => {
    return request.request({
        url: `${serviceName}/${groupName}/getFileList`,
        method: 'post',
        data
    })
}
